package com.hulytu.androidx.adapter.recyclerview;



import com.hulytu.android.adapter.ViewAdapter;
import com.hulytu.androidx.widget.recyclerview.MockRecyclerView;

import org.jetbrains.annotations.NotNull;

public abstract class BasicViewAdapter<VH extends BasicViewHolder> extends MockRecyclerView.Adapter<VH> implements ViewAdapter<VH> {

    @Override
    public void onBindViewHolder(@NotNull VH holder, int position) {
        render(holder, position);
    }

    @Override
    public boolean isEmpty() {
        return getItemCount() == 0;
    }

}
